#ifndef __EC20_H__
#define __EC20_H__
#include "stm32f10x.h"

#define EC20_RXBUFFER_MAXLEN  1400
#define EC20_TXBUFFER_MAXLEN  256
typedef enum {
    ShookHands = 0,
    CheckSim,
    RegNet,//注册GPRS网络
    CheckGprs,
    GetInfo,
    GetCsq,
    QiClose,
    QiApn,
    QiDeact,
	QiGetIP,
	QiGetNum,
    QiAct,
    QiOpen,		//联机MQTT服务器
    MqttCon,
    MqttRev,
    MqttSend,
	MqttAck,
	Power,
} Ec20_InitStatus;

void Ec20_Uart2_Init(void);
void  EC20_MQTT_Event(void);
void USART2_Write(USART_TypeDef* USARTx, uint8_t *Data, uint8_t len);

#endif
